package com.neuedu.pojo;

import java.util.Objects;

public class Employee {
    private Integer id;
    private String account;
    private String password;
    private String nickname;
    private String telephone;
    private String role;
    private Integer isDel;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof Employee)) {
            return false;
        }
        Employee employee = (Employee) object;
        return Objects.equals(id, employee.id) && Objects.equals(account, employee.account) && Objects.equals(password, employee.password) && Objects.equals(nickname, employee.nickname) && Objects.equals(telephone, employee.telephone) && Objects.equals(role, employee.role) && Objects.equals(isDel, employee.isDel);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, account, password, nickname, telephone, role, isDel);
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", telephone='" + telephone + '\'' +
                ", role='" + role + '\'' +
                ", isDel=" + isDel +
                '}';
    }
}
